home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000164_icon-group-sender _Mon Aug 31 09:29:15 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id JAA00967
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 31 Aug 1998 09:29:15 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA21360; Mon, 31 Aug 1998 09:28:50 -0700
Message-Id: <35E814C9.A0E6FEBC@charlie.cns.iit.edu>
Date: Sat, 29 Aug 1998 09:48:41 -0500
From: "Thomas W. Christopher" <tc@charlie.cns.iit.edu>
Organization: Illinois Institute of Technology
X-Mailer: Mozilla 4.06 [en] (WinNT; I)
Mime-Version: 1.0
To: "icon-group@CS.Arizona.EDU" <icon-group@optima.CS.Arizona.EDU>
Subject: Spoonerisms
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Content-Transfer-Encoding: 7bit
Status: RO
Content-Length: 614
Bob Ardler,
Your spoonerism program can be obfuscated a bit as follows:
procedure main()
L := ["g","m","h","f"]
every h:=1 to 4 & i:=1 to 4 & j:=1 to 4 & k:=1 to 4 do {
write(fit(h,i,j,k))
}
end
global L
procedure fit(a,b,c,d)
if a=(b|c|d)|b=(c|d)|c=d then fail
return "A "||L[a]||"ood "||L[b]||"an is "||L[c]||"ard to
"||L[d]||"ind."
end
Although Clayton's solution is the best so far.
--
Thomas W. Christopher -- tc@charlie.cns.iit.edu , tc@toc-press.com
Principal, Tools of Computing LLC. -- http://www.toc-press.com
Associate Prof., Illinois Inst. of Tech. -- http://www.iit.edu/~tc